package modele;

import java.util.List;
import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Transient;
import javax.persistence.Embeddable;

import org.codehaus.jackson.annotate.JsonIgnore;

/**
 * <p>Pojo mapping TABLE module</p>
 * <p></p>
 *
 * <p>Generated at Mon Feb 28 11:28:58 CET 2011</p>
 * @author Salto-db Generator v1.0.16 / EJB3
 * 
 */
@Entity
@Table(name = "module")
@SuppressWarnings("serial")
public class Module implements Serializable {

	/**
	 * Attribute idModule.
	 */
	private Integer idModule;
	
	/**
	 * Attribute intitule.
	 */
	private String intitule;
	
	/**
	 * List of Moduleprofil
	 */
	private List<Moduleprofil> moduleprofils = null;

	
	/**
	 * <p> 
	 * </p>
	 * @return idModule
	 */
	@Basic
	@Id
	@GeneratedValue
	@Column(name = "id_module")
		public Integer getIdModule() {
		return idModule;
	}

	/**
	 * @param idModule new value for idModule 
	 */
	public void setIdModule(Integer idModule) {
		this.idModule = idModule;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return intitule
	 */
	@Basic
	@Column(name = "intitule", length = 45)
		public String getIntitule() {
		return intitule;
	}

	/**
	 * @param intitule new value for intitule 
	 */
	public void setIntitule(String intitule) {
		this.intitule = intitule;
	}
	
	/**
	 * Get the list of Moduleprofil
	 */
	 @OneToMany(mappedBy="module",fetch=FetchType.LAZY)
	 @JsonIgnore
	 public List<Moduleprofil> getModuleprofils() {
	 	return this.moduleprofils;
	 }
	 
	/**
	 * Set the list of Moduleprofil
	 */
	 public void setModuleprofils(List<Moduleprofil> moduleprofils) {
	 	this.moduleprofils = moduleprofils;
	 }


}